<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%@include file="inc/_header.jsp"%>
</head>
<body>
<%@include file="inc/_nav.jsp"%>
<br>
<div class="container">
    <div class="pull-right">
        <a href="/prj/food.do">吃饭</a>|<a href="/prj/food/myOrder.do">我的订单</a>
    </div>

    <c:set var="countPrice" value="0"></c:set>
    <c:forEach items="${orderList}" var="order">
        <c:set var="countPrice" value="${countPrice+order.foodVO.price}"></c:set>
        <div>
                <b>${order.foodVO.rname}</b>
                价格;<b>${order.foodVO.price}</b>
                姓名：${order.rname}
                邮箱：${order.email}
        </div>
    </c:forEach>

    <br>
    <div>
        <b>
            总共价格：<span style="color: red;">${countPrice}</span>
        </b>
    </div>

</div>
<%@include file="inc/_footer.jsp"%>
<%@include file="inc/_toTop.jsp"%>
</body>
</html>
